package com.etc.SendAndRecive;

import java.net.ServerSocket;
import java.net.Socket;

public class Server {
    private static int port = 10086;
    private static String filePath = "C:/Users/Administrator/Desktop/1.exe";

    public static void main(String[] args) {
        try {
            ServerSocket ss = new ServerSocket(port);
            Socket socket = ss.accept();
            FileTransfer.Send(socket, filePath);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
